package com.cq.androidtools.room1

import androidx.room.*

/**
 * 作者: CQ
 * 日期: 2021-05-11
 * 说明:
 */
@Entity
class Book(
    @PrimaryKey(autoGenerate = true)
    var bookId : Int,
    @ColumnInfo(name = "bookName")
    var bookName : String,
    @ColumnInfo(name = "studentId")
    var studentId: Int,
    @ColumnInfo(name = "times")
    var times: Int
) {
    override fun toString(): String {
        return "Book(bookId=$bookId, bookName='$bookName', studentId=$studentId, times=$times)"
    }
}